package com.xiaojian.pick.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author whycode
 * @title: ApplyBond
 * @projectName campus-secondary-market-app---sys
 * @description: TODO
 * @date 2022/2/2014:59
 */

@Data
@Accessors(chain = true)
public class ApplyBond {

    private Long id;
    private String name;
    private String phone;
    private Integer applicant;
    private Integer userId;
    private Integer commodity;
    private Integer addressId;
    private String province;
    private String city;
    private String region;
    private String detail;
    // 0 申请 1 同意 2 发送 3 收到 -1 拒绝
    private Short status;
    private Short getType;
    private String remark;
    private String refuse;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;    // 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date responseTime;    // 更新时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;    // 更新时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;    // 更新时间

    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer limit;

    @TableField(exist = false)
    private Integer start;

    @TableField(exist = false)
    private Integer cId;
    @TableField(exist = false)
    private String coverImage;
    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String avatarUrl;
}
